<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
  <head>
    <link rel="stylesheet" href="css/bootstrap.css">   
    <title>登陆首页</title>
	<style type="text/css">
		body {
			background-color:#78BFE9;
		}
		div #todo{
			font-size:24px;
			color:#60BFE9;
			font-weight:bold;		
		}
	</style>
  </head>
  
  <body>
    <div class="container" style="margin-top:100px">  
    	
     	<form action="login.action" method="post" class="well" style="width:300px;margin:0px auto;height:350px">      		
			<div id="todo">用户登陆</div><br>
			<hr>
			<c:choose>
				<c:when test="${param.code =='10002'}">
					<div class="alert alert-error">
						<button class="close" data-dismiss="alert">×</button>用户名或密码错误
					</div>
				</c:when>
				<c:when test="${param.code =='10001'}">
					<div class="alert alert-error">
						<button class="close" data-dismiss="alert">×</button>用户名或密码不能为空
					</div>
				</c:when>
			</c:choose>
			<span style="font-size:16px">用户名</span>&nbsp;&nbsp;
			<input type="text" name="user.username" style="height:25px"class="span3"/><br />
			<span style="font-size:16px">密  &nbsp;&nbsp; 码</span>&nbsp;&nbsp;
			<input type="password" name="user.password" style="height:25px" class="span3">
			<br><br>
			<button type="submit" class="btn-large btn-primary" style="margin-left:58px;width:120px">登陆</button><br /><br />
			<span style="font-size:14px">没有账号？</span><br /><br />
			<a href="" class="btn" style="margin-left:58px;width:150px;font-size:18px;height:25px;color:#2D91E7">立即注册新账号</a>
		</form>	
 	</div>
  </body>
</html>

